@extends('admin.common.admin_main')
@section('container')
<div class="uc-body">
    <div class="uc-head">
        <ul>
            <li>
                <span class="sel">
                    服务商信息
                </span>
                @if ($dataInfo['auth_status'] == 0)
                <span class="text-disabled">(未认证)</span>
                @elseif($dataInfo['auth_status'] == 1)
                <span class="text-warning">(认证中)</span>
                @elseif($dataInfo['auth_status'] == 3)
                <span class="text-success">(已认证)</span>
                @elseif($dataInfo['auth_status'] == 2)
                <span class="text-danger">(认证未通过)</span>
                @endif
            </li>
        </ul>
        <div class="fr">
            <a class="btn btn-warning" href="/user/company_edit?type=1">信息编辑</a>
        </div>
    </div>
    <div class="form form-table">
        <div class="form-body">
            <div class="row">
                <label class="col-1 control-label request-label" id="company_name">单位名称</label>
                <div class="col-3">
                    <div class="static">{{$dataInfo['company_name']}}</div>
                </div>
                <label class="col-1 control-label">单位性质</label>
                <div class="col-3">
                    <div class="static">{{@$company_type_list[$dataInfo['company_type_id']]}}</div>
                </div>
                <label class="col-1 control-label">单位Logo</label>
                <div class="col-3">
                    <div class="static">
                        @if ($dataInfo['logo_info'])
                            <a class="j_fileUrl" data-href="{{$dataInfo['logo_info'][0]['url']}}">{{$dataInfo['logo_info'][0]['name']}}</a>
                        @endif
                    </div>
                </div>
            </div>
            <div class="row">
                <label class="col-1 control-label">法人代表</label>
                <div class="col-3">
                    <div class="static">{{$dataInfo['legan_user_name']}}</div>
                </div>
                <label class="col-1 control-label">联系电话</label>
                <div class="col-3">
                    <div class="static">{{$dataInfo['legan_user_phone']}}</div>
                </div>
                <label class="col-1 control-label">联系邮箱</label>
                <div class="col-3">
                    <div class="static">{{$dataInfo['legan_user_email']}}</div>
                </div>
            </div>
            <div class="row">
                <label class="col-1 control-label">注册时间</label>
                <div class="col-3">
                    <div class="static">{{$dataInfo['company_regist_date']}}</div>
                </div>
                <label class="col-2 control-label">银行信用等级</label>
                <div class="col-2">
                    <div class="static">{{@$bank_level_list[$dataInfo['bank_level_id']]}}</div>
                </div>
                <label class="col-1 control-label">邮编</label>
                <div class="col-3">
                    <div class="static">{{$dataInfo['zip_code']}}</div>
                </div>
            </div>
            <div class="row">
                <label class="col-1 control-label">注册资本</label>
                <div class="col-3">
                    <div class="static">{{$dataInfo['company_regist_money']}} {{$dataInfo['company_regist_money_type']==1?"人民币":"美元"}}</div>
                </div>
                <label class="col-1 control-label">资产总额</label>
                <div class="col-3">
                    <div class="static">{{$dataInfo['all_money']}}</div>
                </div>
                <label class="col-1 control-label">净资产</label>
                <div class="col-3">
                    <div class="static">{{$dataInfo['earn_money']}}</div>
                </div>
            </div>
            <div class="row">
                <label class="col-1 control-label">注册地址</label>
                <div class="col-11">
                    <div class="static">{{$getAreaNameList[$p]['name']}} {{$getAreaNameList[$c]['name']}} {{$getAreaNameList[$a]['name']}} {{$dataInfo['company_regist_address']}}
                    </div>
                </div>
            </div>
            <div class="row">
                <label class="col-1 control-label request-label">联系人</label>
                <div class="col-3">
                    <div class="static">{{$dataInfo['contact_user_name']}}</div>
                </div>
                <label class="col-1 control-label request-label">联系手机</label>
                <div class="col-3">
                    <div class="static">{{$dataInfo['contact_user_phone']}}</div>
                </div>
            </div>
            <div class="row">
                <label class="col-1 control-label">固定电话</label>
                <div class="col-3">
                    <div class="static">{{$dataInfo['fix_phone']}}</div>
                </div>
                <label class="col-1 control-label">传真号码</label>
                <div class="col-3">
                    <div class="static">{{$dataInfo['fix_number']}}</div>
                </div>
                <label class="col-1 control-label request-label">Email</label>
                <div class="col-3">
                    <div class="static">{{$dataInfo['contact_user_email']}}</div>
                </div>
            </div>
            <div class="row">
                <label class="col-1 control-label request-label">通信地址</label>
                <div class="col-11">
                    <div class="static">{{@$getAreaNameList[$p1]['name']}} {{@$getAreaNameList[$c1]['name']}} {{@$getAreaNameList[$a1]['name']}} {{@$dataInfo['contact_user_address']}}
                    </div>
                </div>
            </div>
            <div class="row">
                <label class="col-1 control-label request-label">涉及领域</label>
                <div class="col-10">
                    <div class="static">
                        @foreach ($selectCompanyDomainList as $key=>$value)
                        {{$getNameList[$value]['name']}}
                        @endforeach
                    </div>
                </div>
            </div>
            <div class="row">
                <label class="col-1 control-label">技术路径</label>
                {{-- <div class="col-2">
                    <div class="static">{{@$service_type_list[$dataInfo['company_service_type_id']]}}</div>
                </div> --}}
                @if($tech_route_info)
                    <div class="col-11">
                            <table class="v3-table v3-table_tech j_techService">
                        <thead>
                        <tr>
                            <th>技术路径名称</th>
                            <th>评估咨询</th>
                            <th>方案设计</th>
                            <th>建设实施</th>
                            <th>运维</th>
                            <th>设备供应</th>
                            <th>其他</th>
                        </tr>
                        </thead>
                        <tbody>
                        @forelse($tech_route_info as $k=>$v)
                            <?php $v['flag'] = str_pad($v['flag'], 6, '0', STR_PAD_LEFT);?>
                            <tr>
                                <td>{{$v['name']}}</td>
                                <td><input type="checkbox"  {{@$v['flag'][0]==1?"checked=checked":''}} disabled="disabled"></td>
                                <td><input type="checkbox"  {{@$v['flag'][1]==1?"checked=checked":''}} disabled="disabled"></td>
                                <td><input type="checkbox"  {{@$v['flag'][2]==1?"checked=checked":''}} disabled="disabled"></td>
                                <td><input type="checkbox"  {{@$v['flag'][3]==1?"checked=checked":''}} disabled="disabled"></td>
                                <td><input type="checkbox"  {{@$v['flag'][4]==1?"checked=checked":''}} disabled="disabled"></td>
                                <td><input type="checkbox"  {{@$v['flag'][5]==1?"checked=checked":''}} disabled="disabled"></td>
                            </tr>
                        @empty

                        @endforelse
                        </tbody>
                    </table>
                    </div>


                @endif
            </div>
            <div class="row">
                <label class="col-1 control-label">职工总数</label>
                <div class="col-2">
                    <div class="static">{{$dataInfo['stuff_num']}}</div>
                </div>
                <label class="col-2 control-label">工程技术人员</label>
                <div class="col-2">
                    <div class="static">{{$dataInfo['tech_num']}}</div>
                </div>
            </div>
            <div class="row">
                <label class="col-1 control-label">主要业务</label>
                <div class="col-10">
                    <div class="static">{{$dataInfo['major_business']}}</div>
                </div>
            </div>
            <div class="row">
                <label class="col-1 control-label">服务领域</label>
                <div class="col-10">
                    <div class="static">
                        @forelse ($selectServiceDomainList as $key=>$value)
                        {{@$getNameList[$value]['name']}}
                        @empty
                        @endforelse
                    </div>
                </div>
            </div>
            <div class="row">
                <label class="col-2 control-label">实施推广能力及方式</label>
                <div class="col-10">
                    <div class="static">
                        @forelse ($selectMethodList as $key=>$value)
                        {{@$getNameList[$value]['name']}}
                        @empty
                        @endforelse
                    </div>
                </div>
            </div>
            <div class="row">
                <label class="col-2 control-label">组织机构代码</label>
                <div class="col-4">
                    <div class="static">{{$dataInfo['organize_code']}}</div>
                </div>
                <label class="col-3 control-label">组织机构代码（扫描件）</label>
                <div class="col-3">
                    <div class="static">
                        @if ($dataInfo['organize_code_file'])
                        <a class="j_fileUrl" data-href="{{$dataInfo['organize_code_file'][0]['url']}}">{{$dataInfo['organize_code_file'][0]['name']}}</a>
                        @endif
                    </div>
                </div>
            </div>
            <div class="row">
                <label class="col-2 control-label">营业执照注册号</label>
                <div class="col-4">
                    <div class="static">{{$dataInfo['organize_regist_number']}}</div>
                </div>
                <label class="col-3 control-label">营业执照注册号（扫描件）</label>
                <div class="col-3">
                    <div class="static">
                        @if ($dataInfo['organize_regist_number_file'])
                        <a class="j_fileUrl" data-href="{{$dataInfo['organize_regist_number_file'][0]['url']}}">{{$dataInfo['organize_regist_number_file'][0]['name']}}</a>
                        @endif
                    </div>
                </div>
            </div>
            @if ($dataInfo['record_info']['fgw'] || $dataInfo['record_info']['gxb'] || $dataInfo['record_info']['province'] || $dataInfo['record_info']['city'])
            <div class="row">
                <label class="col-1 control-label">备案资质</label>
                <div class="col-10">
                    <table class="table">
                        <thead>
                        <tr>
                            <th width="40%">备案级别</th>
                            <th>资质附件</th>
                        </tr>
                        </thead>
                        <tbody>
                        @if ($dataInfo['record_info']['fgw'])
                        <tr>
                            <td>
                                <label class="checkbox-label">发改委备案</label>
                            </td>
                            <td>
                                <div class="static">
                                    @if ($dataInfo['record_info']['fgw'])
                                    <a class="j_fileUrl" data-href="{{$dataInfo['fgw_file'][0]['url']}}">{{$dataInfo['fgw_file'][0]['name']}}</a>
                                    @endif
                                </div>
                            </td>
                        </tr>
                        @endif
                        @if ($dataInfo['record_info']['gxb'])
                        <tr>
                            <td>
                                <label class="checkbox-label">工信部推荐</label>
                            </td>
                            <td>
                                <div class="static">
                                    @if ($dataInfo['record_info']['gxb'])
                                    <a class="j_fileUrl" data-href="{{$dataInfo['gxb_file'][0]['url']}}">{{$dataInfo['gxb_file'][0]['name']}}</a>
                                    @endif
                                </div>
                            </td>
                        </tr>
                        @endif
                        @if ($dataInfo['record_info']['province']>0)
                        <tr>
                            <td>
                                <label class="checkbox-label">省级</label>
                                <select class="form-control j_areaSelect" disabled>
                                    <option>{{$getAreaNameList[$dataInfo['record_info']['province']]['name']}}</option>
                                </select>
                            </td>
                            <td>
                                <div class="static">
                                    @if ($dataInfo['record_info']['province']>0)
                                    <a class="j_fileUrl" data-href="{{$dataInfo['province_file'][0]['url']}}">{{$dataInfo['province_file'][0]['name']}}</a>
                                    @endif
                                </div>
                            </td>
                        </tr>
                        @endif
                        @if ($dataInfo['record_info']['city']>0)
                        <tr>
                            <td>
                                <label class="checkbox-label">市级</label>
                                <select class="form-control j_areaSelect" disabled id="record_province_list">
                                    <option>{{$getAreaNameList[$record_city_province_id]['name']}}</option>
                                </select>
                                <select class="form-control j_areaSelect" disabled>
                                    <option>{{$getAreaNameList[$record_city_id]['name']}}</option>
                                </select>
                            </td>
                            <td>
                                <div class="static">
                                    @if ($dataInfo['record_info']['city']>0)
                                    <a class="j_fileUrl" data-href="{{$dataInfo['city_file'][0]['url']}}">{{$dataInfo['city_file'][0]['name']}}</a>
                                    @endif
                                </div>
                            </td>
                        </tr>
                        @endif
                        </tbody>
                    </table>
                </div>
            </div>
            @endif
            <div class="row">
                <label class="col-2 control-label">单位Banner</label>
                <div class="col-10">
                    <div class="static">
                        @if ($dataInfo['company_banner'])
                            <a class="j_fileUrl" data-href="{{$dataInfo['company_banner'][0]['url']}}">{{$dataInfo['company_banner'][0]['name']}}</a>
                        @endif
                        <a class="j_fileUrl"></a>
                    </div>
                </div>
            </div>
            <div class="row">
                <label class="col-1 control-label">单位简介</label>
                <div class="col-10">
                    <div class="static">{{$dataInfo['company_desc']}}</div>
                </div>
            </div>
            <div class="row">
                <label class="col-1 control-label">技术专长</label>
                <div class="col-10">
                    <div class="static">{{$dataInfo['main_tech_desc']}}</div>
                </div>
            </div>
            <div class="row">
                <label class="col-1 control-label">技术优势</label>
                <div class="col-10">
                    <div class="static">{{$dataInfo['tech_success_desc']}}</div>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection

@section('script')
<script src="{{env('STATIC_PATH')}}/libs/datetimepicker.js"></script>
<script src="{{env('STATIC_PATH')}}/js/user_proprietor.js"></script>
@endsection
